if exist "Tengai Makyou - Ziria EN [v1.0] SplitBin.bin" del "Tengai Makyou - Ziria EN [v1.0] SplitBin.bin"
set binfullname=%~n1
copy /b "%binfullname% (Track 1).bin" + "%binfullname% (Track 2).bin" + "%binfullname% (Track 3).bin" + "%binfullname% (Track 4).bin" + "%binfullname% (Track 5).bin" + "%binfullname% (Track 6).bin" "Tengai Makyou - Ziria EN [v1.0-rev6] SplitBin.bin"

xdelta3 -d -s "Tengai Makyou - Ziria EN [v1.0-rev6] SplitBin.bin" "../redump_patch/Tengai Makyou - Ziria EN [v1.0-rev6] Redump.xdelta" "Tengai Makyou - Ziria EN [v1.0-rev6] SplitBin.bin_patched"

if exist "Tengai Makyou - Ziria EN [v1.0-rev6] SplitBin.bin" del "Tengai Makyou - Ziria EN [v1.0-rev6] SplitBin.bin"
move "Tengai Makyou - Ziria EN [v1.0-rev6] SplitBin.bin_patched" "Tengai Makyou - Ziria EN [v1.0] SplitBin.bin"